/**
 * 信息接口
 */
import { HttpRequestConstants } from '../constants/HttpRequestConstants';
import { LogUtil } from '../utils/LogUtil';
import { FetchService } from '../service/FetchService';
import { HttpRequestParams, HttpResponseResult } from '../base/HttpRequest';
import { StockBasicDto } from '../dto/StockBasicDto';
import { StockBasicVo } from '../vo/StockBasicVo';
import { stockBasicFields } from '../constants/ApiFieldsConstants';
import { fetchPost } from './BaseApi';

const fetchService = new FetchService();
/**
 * 获取基础信息数据，包括股票代码、名称、上市日期、退市日期等
 */
export const fetchStockBasic = async () => {
  let params: StockBasicDto = {
    limit: 10
  }
  const data = await fetchPost("stock_basic", params, stockBasicFields);
  return data;
}